<template>
  <my-icon :type="icon" />
</template>

<script>
import Icon from 'ant-design-vue/es/icon'
import defaultSettings from '@/config/defaultSettings'
const MyIcon = Icon.createFromIconfontCN({
  scriptUrl: defaultSettings.iconfontUrl // 在 iconfont.cn 上生成
})

export default {
  components: {
    MyIcon
  },
  props: {
    icon: {
      type: String,
      default: ''
    }
  },
  data() {
    return {

    }
  }
}
</script>
